package com.xxcxcxcx.xc_crop;
import com.xxcxcxcx.xc_crop.common.Configuration;
import com.xxcxcxcx.xc_crop.common.inits.BlockInit;
import com.xxcxcxcx.xc_crop.common.inits.ItemInit;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod("xc_crop")
public class Main {
    public static final String MOD_ID = "xc_crop";
    public static final CreativeModeTab TUTORIAL_TAB = new CreativeModeTab("ModeTab1") {
        @Override
        @OnlyIn(Dist.CLIENT)
        public ItemStack makeIcon() {
            return new ItemStack(Items.BREAD);
        }
    };
    public Main() {
        IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
        ItemInit.ITEMS.register(bus);
        BlockInit.BLOCKS.register(bus);
        MinecraftForge.EVENT_BUS.register(this);
        ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Configuration.commonConfig);
    }
    public static void setup() {
        IEventBus bus = MinecraftForge.EVENT_BUS;
    }

}
